<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java" %>
<%@ include file="common/header.jspf"%>
<%@ include file="common/navigation.jspf"%>
<div class="panel panel panel-primary" style="width: 800px;margin: auto;">
    <div class="panel-heading">
        添加用户信息
    </div>
    <div class="panel-body">
        <form action="add.do" method="post" class="form-horizontal">
            <div class="form-group">
                <label class="col-sm-2 control-label">用户名:</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control"  name="name" placeholder="请输入姓名">
                </div>
                <div class="alert alert-warning">${name}</div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">年龄:</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="age" value="${user.age}" placeholder="请输入年龄">
                </div>
                <div class="alert alert-warning">${age}</div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">性别:</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control"  name="gender" value="${user.gender}" placeholder="请输入性别">
                </div>
                <div class="alert alert-warning">${gender}</div>
            </div>
            <div>
                <div>
                    <button type="submit" class="btn btn-primary">提交</button>
                    <button type="reset" class="btn btn-info">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
<%@include file="common/footer.jspf"%>